﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.Entity;
using Microsoft.ApplicationBlocks.Data;

namespace ClassProject.DAL
{
    class SupportDAL:ADONET
    {
        SupportEn supportEntity = new SupportEn();
        public SupportDAL()
        {
            
        }

        #region Insert data table Support
        public int Insert()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Insert_Support", supportEntity.Title, supportEntity.Phone);
            return i;
        }
        #endregion

        #region Update data table Support
        public int Update()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Update_Support", supportEntity.Title, supportEntity.Phone, supportEntity.SupportID);
            return i;
        }
        #endregion

        #region Delete data table Support
        public int Delete()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Delete_Support", supportEntity.SupportID);
            return i;
        }
        #endregion
    }
}
